package com.imooc.t.springcloudfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(url = "http://www.baidu.com", name = "baidu")
interface SpringCloudBaiduFeignClient {
    // http://www.baidu.com?a=xxx
    @GetMapping("/")
    String index(@RequestParam("a") String a);
}